package org.market.domain.strategy.service.rule.chain;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: Insight
 * @Description: TODO
 * @Date: 2025/2/23 下午11:24
 * @Version: 1.0
 */
@Slf4j
@Service
public abstract class AbstractLogicChain implements ILogicChain {
    /**
     * 责任链节点
     */
    private ILogicChain next;

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    @Override
    public ILogicChain next() {
        return next;
    }

    public abstract String ruleModel();
}
